import request from "@/utils/request";

// 查询我的接单列表
export function listBizCustomerReceive(query) {
  return request({
    url: "/biz/bizCustomerReceive/list",
    method: "get",
    params: query,
  });
}

// 查询我的接单详细
export function getBizCustomerReceive(id) {
  return request({
    url: "/biz/bizCustomerReceive/" + id,
    method: "get",
  });
}

// 新增我的接单
export function addBizCustomerReceive(data) {
  return request({
    url: "/biz/bizCustomerReceive",
    method: "post",
    data: data,
  });
}

// 修改我的接单
export function updateBizCustomerReceive(data) {
  return request({
    url: "/biz/bizCustomerReceive",
    method: "put",
    data: data,
  });
}

// 删除我的接单
export function delBizCustomerReceive(id) {
  return request({
    url: "/biz/bizCustomerReceive/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerReceive/findMaxSort",
    method: "get",
  });
}
// 导出我的接单
export function exportBizCustomerReceive(query) {
  return request({
    url: "/biz/bizCustomerReceive/export",
    method: "get",
    params: query,
  });
}
